package com.gx.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * member_type
 * @author 
 */
public class MemberType implements Serializable {
    /**
     * 会员类型id
     */
    private Integer id;

    /**
     * 会员等级
     */
    private String userType;

    /**
     * 会员折扣
     */
    private BigDecimal discount;

    /**
     * 最晚预留时间
     */
    private Date lastReserveTime;

    /**
     * 延迟退房时间
     */
    private Date delayedCheckOutTime;

    /**
     * 早餐
     */
    private String breakfast;

    /**
     * 说明备注
     */
    private String explains;

    /**
     * 是否有效
     */
    private Boolean isValid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public Date getLastReserveTime() {
        return lastReserveTime;
    }

    public void setLastReserveTime(Date lastReserveTime) {
        this.lastReserveTime = lastReserveTime;
    }

    public Date getDelayedCheckOutTime() {
        return delayedCheckOutTime;
    }

    public void setDelayedCheckOutTime(Date delayedCheckOutTime) {
        this.delayedCheckOutTime = delayedCheckOutTime;
    }

    public String getBreakfast() {
        return breakfast;
    }

    public void setBreakfast(String breakfast) {
        this.breakfast = breakfast;
    }

    public String getExplains() {
        return explains;
    }

    public void setExplains(String explains) {
        this.explains = explains;
    }

    public Boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MemberType other = (MemberType) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserType() == null ? other.getUserType() == null : this.getUserType().equals(other.getUserType()))
            && (this.getDiscount() == null ? other.getDiscount() == null : this.getDiscount().equals(other.getDiscount()))
            && (this.getLastReserveTime() == null ? other.getLastReserveTime() == null : this.getLastReserveTime().equals(other.getLastReserveTime()))
            && (this.getDelayedCheckOutTime() == null ? other.getDelayedCheckOutTime() == null : this.getDelayedCheckOutTime().equals(other.getDelayedCheckOutTime()))
            && (this.getBreakfast() == null ? other.getBreakfast() == null : this.getBreakfast().equals(other.getBreakfast()))
            && (this.getExplains() == null ? other.getExplains() == null : this.getExplains().equals(other.getExplains()))
            && (this.getIsValid() == null ? other.getIsValid() == null : this.getIsValid().equals(other.getIsValid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserType() == null) ? 0 : getUserType().hashCode());
        result = prime * result + ((getDiscount() == null) ? 0 : getDiscount().hashCode());
        result = prime * result + ((getLastReserveTime() == null) ? 0 : getLastReserveTime().hashCode());
        result = prime * result + ((getDelayedCheckOutTime() == null) ? 0 : getDelayedCheckOutTime().hashCode());
        result = prime * result + ((getBreakfast() == null) ? 0 : getBreakfast().hashCode());
        result = prime * result + ((getExplains() == null) ? 0 : getExplains().hashCode());
        result = prime * result + ((getIsValid() == null) ? 0 : getIsValid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userType=").append(userType);
        sb.append(", discount=").append(discount);
        sb.append(", lastReserveTime=").append(lastReserveTime);
        sb.append(", delayedCheckOutTime=").append(delayedCheckOutTime);
        sb.append(", breakfast=").append(breakfast);
        sb.append(", explains=").append(explains);
        sb.append(", isValid=").append(isValid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}